from django.db import models


# Create your models here.

class User(models.Model):
    username = models.CharField(verbose_name='用户名', max_length=32)
    gender_choices = (
        (1, "男"),
        (2, "女"),
    )
    gender = models.SmallIntegerField(verbose_name="性别", choices=gender_choices)
    email = models.CharField(verbose_name="邮箱", max_length=20)
    password = models.CharField(verbose_name='密码', max_length=64)

    def __str__(self):
        return self.username
